#ifndef PROTOCOL_WL_SURFACE_H
#define PROTOCOL_WL_SURFACE_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#define WL_SURFACE_STR "wl_surface"
#define WL_SURFACE_STR_DWS 3
//------------------------------------------------------------------------------
//requests
#define WL_SURFACE_DESTROY              0
#define WL_SURFACE_ATTACH               1
#define WL_SURFACE_DAMAGE               2
#define WL_SURFACE_FRAME                3
#define WL_SURFACE_SET_OPAQUE_REGION    4
#define WL_SURFACE_SET_INPUT_REGION     5
#define WL_SURFACE_COMMIT               6
//from interface version 2
#define WL_SURFACE_SET_BUFFER_TRANSFORM 7
//------------------------------------------------------------------------------
//events
#define WL_SURFACE_ENTER 0
#define WL_SURFACE_LEAVE 1
//------------------------------------------------------------------------------
#endif
